<%--
  Created by IntelliJ IDEA.
  User: hahxixi
  Date: 2024/11/3
  Time: 下午3:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生信息添加</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
</head>
<body>
<form class="layui-form" action="/student/addSave" method="post">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">学&nbsp;&nbsp;号</label>
            <div class="layui-input-inline layui-input-wrap">
                <input type="text" name="studentNum" autocomplete="off" lay-affix="clear"
                       class="layui-input demo-phone">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓&nbsp;&nbsp;名</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentName" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性&nbsp;&nbsp;别</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="gender" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年&nbsp;&nbsp;龄</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="age" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">出生日期</label>
            <div class="layui-input-inline">
                <input type="text" name="birthday" class="layui-input" id="birthday">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">班&nbsp;&nbsp;级</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="classId" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿&nbsp;&nbsp;舍</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="hostelId" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电&nbsp;&nbsp;话</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="tel" name="phone" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮&nbsp;&nbsp;箱</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="email" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">家庭住址</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="homeAddress" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">紧急联系人</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="emergencyContact" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">紧急联系电话</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="emergencyContactPhone" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">专&nbsp;&nbsp;业</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="major" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">备&nbsp;&nbsp;注</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="remark" lay-verify="required" autocomplete="off" lay-affix="clear"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重&nbsp;&nbsp;置</button>
        </div>
    </div>
</form>
</body>
<script src="/static/layui/layui.js"></script>
<script>
    layui.use(function(){
        var laydate = layui.laydate;
        // 渲染
        laydate.render({
            elem: '#birthday'
        });
    });
</script>
</html>
